
// 有关token的操作在此工具类中
import { TOKEN_KEY } from '@/constant';
// import { refreshToken as refreshTokenApi } from '@/api/user';
import Storage from '@/utils/storage.js';
import { STORAGE_OPTIONS } from '@/constant';

const store = new Storage(STORAGE_OPTIONS);

export function getToken() {
  return store.get(TOKEN_KEY);
}

export function setToken(token) {
  return store.set(TOKEN_KEY, token);
}

export function removeToken() {
  return store.remove(TOKEN_KEY);
}
export function refreshToken() {
  // return refreshTokenApi()
}


